<html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<header>
    <!-- <meta charset="utf-8"> -->
    <meta charset="utf-8">
    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="../layui/css/layui.css">
    <!-- 引入 layui.js -->
    <title>登陆页</title>
    <link href="../css/login.css" rel="stylesheet" type="text/css">
</header>
<body>

<div>
<!--    <div id="b">-->

<!--        <div >-->
<!--            <h2 class="title">管理员登陆</h2>-->
<!--        </div>-->
<!--        <div class="layui-form-item">-->
<!--            <label class="layui-form-label"><i class="layui-icon layui-icon-username"-->
<!--                                               style="font-size: 30px; color: #95bbd7"></i> </label>-->
<!--            <div class="layui-input-inline">-->
<!--                <input type="text" name="title" required lay-verify="required" placeholder="请输入标题" autocomplete="off"-->
<!--                       class="layui-input">-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="layui-form-item">-->
<!--            <label class="layui-form-label"><i class="layui-icon layui-icon-password"-->
<!--                                               style="font-size: 30px; color: #95bbd7"></i></label>-->
<!--            <div class="layui-input-inline">-->
<!--                <input type="password" name="password" required lay-verify="required" placeholder="请输入密码"-->
<!--                       autocomplete="off" class="layui-input">-->
<!--            </div>-->

<!--        </div>-->
<!--        <button type="button" class="layui-btn layui-btn-radius layui-btn-normal submit">登录</button>-->
<!--    </div>-->
    <div id="a">
        <form class="layui-form" th:action="@{/login}">
            <div>
                <h2 class="title">用户登录</h2>
            </div>
            <p STYLE="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
            <div class="layui-form-item">
                <label class="layui-form-label"><i class="layui-icon layui-icon-username"
                                                   style="font-size: 30px; color: #95bbd7"></i> </label>
                <div class="layui-input-inline">
                    <input type="text" name="userName" required lay-verify="required" placeholder="请输昵称"
                           autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"><i class="layui-icon layui-icon-password"
                                                   style="font-size: 30px; color: #95bbd7"></i></label>
                <div class="layui-input-inline">
                    <input type="password" name="password" required lay-verify="required" placeholder="请输入密码"
                           autocomplete="off" class="layui-input">
                </div>
            </div>

            <a th:href="@{/toRegister}" id="toLogin" style="">注册</a>
            <button type="submit" class="layui-btn layui-btn-radius layui-btn-normal submit">登录</button>
        </form>
    </div>
    <img src="../picture/bg.jpg" width="100%" height="100%">
</div>
    <script src="../layui/layui.js"></script>
</body>

</html>

